package com.cloud.school.bus.teacherhelper.protocol.classmanage;

import java.util.HashMap;

import android.content.Context;
import android.text.TextUtils;

import com.cloud.school.bus.teacherhelper.protocol.ProtocolDef;
import com.cloud.school.bus.teacherhelper.protocol.baserequest.BaseGetHttpRequest;
import com.cloud.school.bus.teacherhelper.protocol.baserequest.BasePostHttpRequest;
/**
 * 调班/离班接口
 * @author jiahongfei
 *
 */
public class InClassRequest extends BaseGetHttpRequest {

	/**
	 * 调班/离班接口
	 * @param context
	 * @param studentid  学生id
	 * @param studentuid  学生uid
	 * @param type  1为离班 0为调班
	 */
	public InClassRequest(Context context, String studentid, String studentuid, String type) {
		super(context);
		HashMap<String, String> requestMap = new HashMap<String, String>();
		if (!TextUtils.isEmpty(studentid)) {
			requestMap.put("studentid", studentid);
		}
		if (!TextUtils.isEmpty(studentuid)) {
			requestMap.put("studentuid", studentuid);
		}
		if (!TextUtils.isEmpty(type)) {
			requestMap.put("type", type);
		}
		setRequestParam(ProtocolDef.METHOD_In_Class, requestMap);
	}

}
